// 导出一个已经配置好的axios
import axios from "axios";

axios.interceptors.request.use(
  function(config) {
    var token = window.sessionStorage.getItem("token");
    config.headers.Authorization = token;
    return config;
  },
  function(error) {
    return Promise.reject(error);
  }
);
axios.defaults.baseURL = "http://127.0.0.1:11333/api/private/v1/";
export default axios;
